import request from '../Utils/request'


/**
 * 用户登录
 * @param {*} data 
 * @returns 
 */
export const login = (data)=>{ 
    return request({ 
        url:'/login',
        method:'post',
        data
    })
}

/**
 * 用户注册
 * @param {*} data 
 * @returns 
 */
export const register = (data)=>{ 
    return request({ 
        url:'/register',
        method:'post',
        data
    })
} 

